<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="renderer" content="webkit">
	<title> hAdmin- 主页</title>
	<meta name="keywords" content="">
	<meta name="description" content="">
	<!--[if lt IE 9]>
	<meta http-equiv="refresh" content="0;ie.html" />
	<![endif]-->
	<link rel="shortcut icon" href="favicon.ico">
	<link href="__STATIC__/css/bootstrap.min.css" rel="stylesheet">
	<link href="__STATIC__/css/font-awesome.min.css" rel="stylesheet">
	<link href="__STATIC__/css/animate.css" rel="stylesheet">
	<link href="__STATIC__/css/style.css" rel="stylesheet">
	<!--表单元素css-->
	<link href="__STATIC__/css/plugins/iCheck/custom.css" rel="stylesheet">

</head>

<body class="fixed-sidebar full-height-layout gray-bg">
<div id="wrapper">
	<!--左侧导航开始-->
	<include file="Public/left" title="left" />
	<!--左侧导航结束-->
	<!--右侧部分开始-->
	<div id="page-wrapper" class="gray-bg dashbard-1" style="height: auto;">
		<include file="Public/top" title="top" />
		<div class="row J_mainContent" id="content-main">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-title">
						<h5>应用管理</h5>
					</div>
					<div class="ibox-content">
						<form method="post" action="{:U('list/update')}" enctype="multipart/form-data" class="form-horizontal">

							<div class="form-group">
								<label class="col-sm-2 control-label">ID</label>
								<div class="col-sm-10">
									<input type="text" class="form-control" disabled="disabled"   value="{$post.id}">
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">发布人</label>
								<div class="col-sm-10">
									<input type="text" class="form-control" disabled="disabled"     value="{$post.fid|getName}">
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">手机号</label>
								<div class="col-sm-10">
									<input type="text" class="form-control" disabled="disabled"   value="{$post.fid|getPhone}">
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">昵称</label>
								<div class="col-sm-10">
									<input type="text" class="form-control"  placeholder="输入昵称" name="nickname"  value="{$post.nickname}">
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">网址</label>
								<div class="col-sm-8">
									<input type="text" class="form-control" disabled  placeholder="输入昵称" name="web"  value="{$post.web}">
								</div>
								<div class="col-sm-2">	<a href="{$post.web}" target="_blank">点击链接</a></div>
							</div>

							<div class="form-group">
								<label class="col-sm-2 control-label">第二网址</label>
								<div class="col-sm-8">
									<input type="text" class="form-control"  placeholder="输入昵称" name="shorturl"  value="{$post.shorturl}">
								</div>
								<div class="col-sm-2">	<a href="{$post.web}" target="_blank">点击链接</a></div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">类型</label>
								<div class="col-sm-10">
									<if condition="$post.ext eq 'ipa' ">
										<input type="text" class="form-control" disabled="disabled" name="ext" value="IOS" ><span class="help-block m-b-none"></span>
									</if>
									<if condition="$post.ext eq 'apk' ">
										<input type="text" class="form-control" disabled="disabled" name="ext" value="安卓"><span class="help-block m-b-none"></span>
									</if>
									<span class="help-block m-b-none"></span>
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">批号</label>
								<div class="col-sm-10">
									<input type="text" class="form-control" name="pihao" value="{$post.pihao}" ><span class="help-block m-b-none"></span>
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">密码</label>
								<div class="col-sm-10">
									<input type="text" class="form-control" name="aqpassword" value="{$post.aqpassword}" ><span class="help-block m-b-none"></span>
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">app下载地址</label>
								<div class="col-sm-10"><input type="text" name="uptxt" class="form-control"   value="{$post.uptxt}"></div>
							</div>
										<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">.plist</label>
								<div class="col-sm-10"><input type="text" name="plist" class="form-control"   value="{$post.plist}"></div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">是否热门</label>

								<div class="checkbox i-checks">
									<if condition="$post.ishot eq '0' ">
										<input name="ishot"  value="1" type="radio">是
										<input name="ishot" value="0" type="radio" checked="checked">否

										<elseif condition="$post.ishot eq '1' " />
										<input name="ishot"  value="1" checked="checked"type="radio">是
										<input name="ishot" value="0" type="radio" >否
									</if>
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">下载次数</label>
								<div class="col-sm-10">
									<input type="text" name="xznum" disabled="disabled"  class="form-control"   value="{$post.xznum}">
								</div>
							</div>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">介绍</label>
								<div class="col-sm-10">
									<textarea rows="6" placeholder="请输入介绍" name="beifen" style="width:100%;resize: none">{$post.beifen}</textarea>
								</div>
							</div>
							<style>
								.mobanspan{display:block;float:left;margin-right:10px;text-align:center;}
								.mobanspan img{border:1px solid #cecece;}
							</style>
							<div class="hr-line-dashed"></div>
							<div class="form-group">
								<label class="col-sm-2 control-label">模板使用</label>
								<div class="col-sm-10">
								<div >
									<img src="https://www.pgyer.com/static/images/fashion4.png" width="100px">
									<img src="https://www.pgyer.com/static/images/fashion4.png"  width="100px"><br>

							</div>
							<div class="checkbox i-checks" >

								<if condition="$post.mobanid eq '0' ">
									<input type="radio" name="mobanid" value="0" checked="checked" >模板一
									&emsp;&emsp;&emsp;&emsp;&emsp;
									<input type="radio" name="mobanid" value="1"   >模板二
								</if>
								<if condition="$post.mobanid eq '1' ">
									<input type="radio" name="mobanid" value="0"  >模板一
									&emsp;&emsp;&emsp;&emsp;&emsp;
									<input type="radio" name="mobanid" value="1"  checked="checked"  >模板二
								</if>


							</div>
								</div>
							</div>
							<div class="form-group">

								<div class="col-sm-4 col-sm-offset-2">
									<input type="hidden" name="id" value="{$post.id}">
									<input type="hidden" name="fid" value="{$post.fid}">
									<input type="submit" class="btn btn-info" value="提交"/>
								</div>
							</div>

						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!--右侧部分结束-->

	<!-- 全局js -->
	<script src="__STATIC__/js/jquery.min.js"></script>
	<script src="__STATIC__/js/bootstrap.min.js"></script>
	<script src="__STATIC__/js/content.js"></script>
	<script src="__STATIC__/js/plugins/iCheck/icheck.min.js"></script>
	<script>
        $(document).ready(function() {
            $('.i-checks').iCheck({
                checkboxClass: 'icheckbox_square-green',
                radioClass: 'iradio_square-green',
            });
        });
	</script>
</body>

</html>